<a name="top"></a>
<div id="toptoolbar">	
    <script type="text/javascript">
	function checkLogin(){
 		user=document.getElementById('topUsername').value;
 		pass=document.getElementById('topPassword').value;
		if(user=="tài khoản"||user=='') alert ('Bạn chưa điền tên tài khoản');
		else if(pass=="      "||pass=='') alert ('Bạn chưa điền mật khẩu');
		else {
			if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
			xmlhttp=new XMLHttpRequest();
			}
			else{// code for IE6, IE5
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange=function(){
			if (xmlhttp.readyState==4 && xmlhttp.status==200){
				eval (xmlhttp.responseText);
			}
			}								
			xmlhttp.open("GET","ajax.php?action=toplogin&user="+user+"&pass="+pass,true);
			xmlhttp.send();		
		}
	} 
	</script>	 	
    <input name="form_module_id" value="1145" type="hidden"><div class="folder" style="margin: 0pt auto; width: 1000px;">
    <div style="float: left; width: 460px;">
        <ul style="text-align: left;">
            <li><strong>Trợ giúp:</strong></li>
            <li><span style="font-size: 1.1em; font-weight: bold; color: rgb(204, 0, 0);">Admin: 0946 188 955</span></li>
            <li>|</li>
            <li><a href="ymsgr:sendIM?ttcm_hotro"><img src="templeted/images/yahoo_icon.gif" title="Yahoo"></a></li>	          
            <li><a href="../lienhe.html" target="_blank"><img src="templeted/images/mail_icon.gif" title="Email"></a></li>
        </ul>
    </div>
    <div id="top-right">
        <ul id="top-menu">  
        	<?php 			
				if (isset($_SESSION['user'])){
					echo "<li>Chào:<b><a href='/shop/".$_SESSION['user']."'>".$_SESSION['user']."</a> </b></li>";
					echo "<li>  </li>"	;
					echo " <li> <a href='./?action=trangcanhan'>Trang cá nhân</a> </li>";
					echo "<li>  </li>"	;
					echo " <li> <a href='?action=thoat'> Thoát</a> </li>";
				}
				else {
					echo " <li class=\"first\"><a href=\"./?action=dangki\">Đăng ký</a></li> ";
					echo " <li>|</li>";
					echo " <li><a href=\"./?action=dangnhap\">Đăng nhập</a></li>";
					echo " <li>&nbsp;</li>";
					echo " <li class=\"last\" id=\"quick-login\">";
					echo " <input name=\"user_name\" id=\"topUsername\" onFocus=\"javascript:if(this.value=='tài khoản'){this.value='';};\" onBlur=\"javascript:if(this.value==''){this.value='tài khoản';};\" value=\"tài khoản\" class=\"username-pass\" type=\"text\">";
					echo " <input name=\"password\" id=\"topPassword\" onFocus=\"javascript:if(this.value=='      '){this.value='';};\" onBlur=\"javascript:if(this.value==''){this.value='';};\" value=\"      \" class=\"username-pass\" type=\"password\">";
					echo "<li> <input value='Đăng nhập' type='button' onclick=\"checkLogin()\" type=\"submit\"\></li>";
					echo "  </li>";
				}
			?>       
       	</ul>
   	 </div>            
</div></div>